package com.ruoyi.environment.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 企业设备对象 opm_env_enterprise_equipment
 *
 * @author cjie
 * @date 2021-07-23
 */
@Data
@ApiModel
public class OpmEnvEnterpriseEquipment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @ApiModelProperty(value = "序号")
    @JsonSerialize(using = com.fasterxml.jackson.databind.ser.std.ToStringSerializer.class)
    @JSONField(serializeUsing= ToStringSerializer.class)
    private Long id;

    /** 所属企业 */
    @Excel(name = "所属企业")
    @ApiModelProperty(value = "所属企业")
    private String ownedCompany;

    /** 设备名称 */
    @Excel(name = "设备名称")
    @ApiModelProperty(value = "设备名称")
    private String name;

    /** 设备编号 */
    @Excel(name = "设备编号")
    @ApiModelProperty(value = "设备编号")
    private String facilityNum;

    /** 设备分类 */
    @Excel(name = "设备分类")
    @ApiModelProperty(value = "设备分类")
    private String deviceType;

    /** 工作状态 */
    @Excel(name = "工作状态")
    @ApiModelProperty(value = "工作状态")
    private String status;

    /** 安装位置 */
    @Excel(name = "安装位置")
    @ApiModelProperty(value = "安装位置")
    private String location;

    /** 安装日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "安装日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "安装日期")
    private Date installTime;

    /** 责任人 */
    @Excel(name = "责任人")
    @ApiModelProperty(value = "责任人")
    private String responsible;

    /** 责任人电话 */
    @Excel(name = "责任人电话")
    @ApiModelProperty(value = "责任人电话")
    private String respPhone;

    /** 设备说明 */
    @Excel(name = "设备说明")
    @ApiModelProperty(value = "设备说明")
    private String desc1;


}
